/**
 * 
 */
package ikelib;

/**
 * 
 * @author ikechan
 *
 */
public class ConfigString  {
	public static String RemoveComment(String str){
		String line= new String(str);
		if(line.length()<=0){
			return null;
		}
		int idx = line.indexOf(";");
		if(idx>=0) line = line.substring(0,idx);
		line = line.trim();
		
		if(line.length()<=1){
			return line;
		}
		idx = line.indexOf("//");
		if(idx>=0) line = line.substring(0,idx);
		line = line.trim();
		return line;
	}
}
